package com.laiketui.common.api.plugin;


import com.laiketui.domain.user.User;
import com.laiketui.core.exception.LaiKeAPIException;

import java.util.List;
import java.util.Map;

/**
 * 公共砍价
 *
 * @author Trick
 * @date 2021/2/22 16:18
 */
public interface PubliceBargainService {


    /**
     * 获取正在砍价得商品
     * 【php indexAction.bargain】
     *
     * @param storeId   -
     * @param pageStart -
     * @param pageEnd   -
     * @param user      - 当前登录用户
     * @return List
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/2/22 16:21
     */
    List<Map<String, Object>> bargainGoodsInfo(int storeId, int pageStart, int pageEnd, User user) throws LaiKeAPIException;


    /**
     * 获取砍价商品详情
     *
     * @param storeId   -
     * @param bargainId -
     * @param user      - 当前登录用户
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/20 15:38
     */
    Map<String, Object> getBargainDataList(int storeId, int bargainId, User user) throws LaiKeAPIException;
}
